@echo off
pushd "%~dp0"
powershell -ExecutionPolicy Unrestricted -Command if((test-path variable:psversiontable) -and $psversiontable.psversion.major -ge 3){'Unblocking files under '+$pwd.Path;'Please press *Enter* to continue';Read-Host;Get-ChildItem -Recurse ^| Unblock-File;'Done'} else {'Please make sure you have PowerShell Version 3 is installed'}'Please press *Enter* to exit';Read-Host
popd
